package com.key.custom.plm.service.serviceImp;

import com.key.base.service.serviceImp.BaseServiceImp;
import com.key.custom.plm.dao.ISapDao;
import com.key.custom.plm.model.Sap;
import com.key.custom.plm.service.ISapService;

public class SapServiceImp extends BaseServiceImp implements ISapService {
	ISapDao sapDao;

	public ISapDao getSapDao() {
		return sapDao;
	}

	public void setSapDao(ISapDao sapDao) {
		this.sapDao = sapDao;
	}

	/**
	 * model
	 * 
	 * @param sap
	 */
	@Override
	public void add(Sap sap) throws Exception {
		try {
			sapDao.add(sap);
		} catch (Exception e) {
			e.printStackTrace();
			throw e;
		}
	}

	/**
	 * model
	 * 
	 * @param sap
	 */
	@Override
	public void update(Sap sap) throws Exception {
		try {
			sapDao.update(sap);
		} catch (Exception e) {
			e.printStackTrace();
			throw e;
		}
	}
}
